package com.nmsl.statistic.controller;

import com.nmsl.common.core.domain.AjaxResult;
import com.nmsl.statistic.domain.McslfPatient;
import com.nmsl.statistic.mapper.McslfPatentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/proson")
public class ProSonController {
    @Autowired
    McslfPatentMapper mcslfPatentMapper;
    @RequestMapping("/pentnt/{name}")
    public AjaxResult getP(@PathVariable String name){
//        McslfPatient mcslfPatient = mcslfPatentMapper.selectByPatientId(10);
//        System.out.println(mcslfPatient.toString());
        List<McslfPatient> mcslfPatient1 = mcslfPatentMapper.selectByPatientName(name);
        System.out.println(mcslfPatient1);
        return AjaxResult.success(mcslfPatient1);
    }
}
